#include<stdio.h>
#include"Queue.h"

static void Qprint(Queue* q)
{
	assert(q);
	while(!QueueEmpty(q))
		printf("popval = %d\n", QueuePop(q));
}

void test1()
{
	Queue* q = QueueCreate();
	QueuePush(q, 1);
	QueuePush(q, 2);
	QueuePush(q, 3);
	QueuePush(q, 4);
	printf("Popval = %d\n", QueuePop(q));
	printf("Popval = %d\n", QueuePop(q));
	printf("Popval = %d\n", QueuePop(q));
	printf("Popval = %d\n", QueuePop(q));
	Qprint(q);
	QueueDestroy(q);
}

int main()
{
	test1();
	return 0;
}